package min.chapter.five;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class LoggingAcqisition {
	public static void main(String[] args) {
		String[] configLocations = new String[] {
				"min/chapter/five/LoggingContext.xml",
				"min/chapter/five/LoggingCommon.xml" };
		ApplicationContext context = new ClassPathXmlApplicationContext(
				configLocations);
		LoggingWriteArticleService articleService = (LoggingWriteArticleService) context
				.getBean("writeArticleService");
		articleService.write(new LoggingArticle());
	}
}